package com.team20.map_demo.service;

import com.team20.map_demo.domain.Administrator;
import com.team20.map_demo.mapper.AdministratorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdministratorServiceImpl implements AdministratorService {
    @Autowired
    private AdministratorMapper administratorMapper;

    @Override
    public Administrator getAdminByName(String adminName) {
        return administratorMapper.selectByName(adminName);
    }
}
